import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import List from './components/List';

const ImpTaskList = ({
    navigation, impTaskList, getList, sortList,
}) => (
    <View>
        <List
            navigation={navigation}
            impTaskList={impTaskList}
            getList={getList}
            sortList={sortList}
        />
    </View>
);
ImpTaskList.defaultProps = {
    impTaskList: [],
    getList: () => {},
    sortList: () => {},
};
ImpTaskList.propTypes = {
    impTaskList: PropTypes.arrayOf(PropTypes.any),
    getList: PropTypes.func,
    sortList: PropTypes.func,
};
export default ImpTaskList;
